<?php

//==========================================
function readCurrentValue($file)
//==========================================
{

  if(!file_exists($file))
    {
      return("-");;
    }

  $in = fopen($file,"r");
  if($in)
    {
      $row = fgets($in);
    }  
  fclose($in);
  return($row);
}

$value = readCurrentValue("power-now.html");
echo("$value<br>");
//$value = readCurrentValue("date-now.html");
//echo("<br><br>$value");
?>
